package cn.gs.exchanger.agent;

// @author gs
public class A {

    public int value = 0;

    public int increase() {
        ++value;
        return value;
    }

    public A add(A a) {
        A b = new A();
        b.value = value + a.value;
        return b;
    }

    public A sub(A b) {
        this.value = value - b.value;
        return this;
    }

    public void multiply(int c) {
        this.value *= c;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
